The Dichotomous Intensional Expressive Power of the Nested Relational Calculus with Powerset

نویسنده

  • Limsoon Wong
چکیده

Most existing studies on the expressive power of query languages have focused on what queries can be expressed and what queries cannot be expressed in a query language. They do not tell us much about whether a query can be implemented efficiently in a query language. Yet, paradoxically, efficiency is of primary concern in computer science. In this paper, the efficiency of queries in NRC(powerset), a nested relational calculus with a powerset operation, is discussed. A dichotomy in the efficiency of these queries on a large general class of structures— which include long chains, deep trees, etc.—is discovered. In particular, it is shown that these queries are either already expressible in the usual nested relational calculus or require at least exponential space. This Dichotomy Theorem, when coupled with the Bounded Degree Property of the usual nested relational calculus proved earlier by Libkin and Wong, becomes a powerful general tool in studying the intensional expressive power of query languages. The Bounded Degree Property makes it easy to prove that a query is inexpressible in the usual nested relational calculus. Then, if the query is expressible in NRC(powerset), subject to the conditions of the Dichotomy Theorem, the query must take at least

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Equivalence of the Relational Algebra a N D Calculus for Nested Relations

Abstrac t -The relational model is extended to include nested structures. This extension is formalised using the distinction between a tuple scheme and a relation scheme. The algebra and calculus languages are defined for this model. It is shown that the restricted powerset is a derived operation in the algebra and the full powerset is expressible by a safe forraula in the calculus. Since the f...

متن کامل

Simulation of the Nested Relational Algebra by the at Relational Algebra, with an Application to the Complexity of Evaluating Powerset Algebra Expressions

Paredaens and Van Gucht proved that the at relational algebra has the same expressive power as the nested relational algebra, as far as queries over at relations and with at results are concerned. We provide a new, very direct proof of this fact using a simulation technique. Our technique is also applied to partially answer a question posed by Suciu and Paredaens regarding the complexity of eva...

متن کامل

Solving Equations in the Relational Algebra

Enumerating all solutions of a relational algebra equation is a natural and powerful operation which, when added as a query language primitive to the nested relational algebra, yields a query language for nested relational databases, equivalent to the well-known powerset algebra. We study sparse equations, which are equations with at most polynomially many solutions. We look at their complexity...

متن کامل

Simulation of the nested relational algebra by the flat relational algebra, with an application to the complexity of evaluating powerset algebra expressions

Paredaens and Van Gucht proved that the at relational algebra has the same expressive power as the nested relational algebra as far as queries over at relations and with at results are concerned We provide a new very direct proof of this fact using a simulation technique Our technique is also applied to partially answer a question posed by Suciu and Paredaens regarding the complexity of evaluat...

متن کامل

Well-Defined NRC Queries Can Be Typed

We study the expressive power of the static type system of the Nested Relational Calculus NRC and show that on so-called homogeneous input and output types, the NRC type system is expressively complete: every untyped but homogeneously well-defined NRC expression can be equivalently expressed by a well-typed expression. The NRC static type system hence does not limit the expressive power of the ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013